Both through telescope as through the wormhole, the clocks can be observed to go slower. After 20 years at A, both the telescope as observation through the wormhole show 10 years have passed at B.
If we don't stop B from spinning: The regular space traveler takes 5 years, as observed from A, to reach B, so reaches B at A:25 years, B:12,5 years. If they leave immediately after arrival, they'll end up again at A at A:30y, B:15y. Otoh, the wormhole travel leaves at A:20y ends up at B at 10y and gets back to A immediately: A still at 20y and B at 10y. Mixed travel:regular travel starts at A:20, B:10y, reaches B at A:25y, B:12,5 and jumps back through the wormhole at the same time as seen from A and B.