Can’t remember about MUA2, but for MUA1 you were given a “Portal” option about 20-25 minutes into the game.
The portal can be selected from the Pause menu and is usable in 95% of the game (it has a 5 minute cooldown), and it lets you teleport your entire team back to your home base (while saving your progress, coins…