The host of the meeting can click on the Close all rooms button at the bottom right of the Breakout rooms window then select Close. When all the breakout rooms are closed, all the participants will be returned to the main meeting.
Note: You can only close all the breakout rooms when the breakout rooms are open.