There are two ways of closing all tabs in the editor but the current one:
Right-click the editor tab, and choose
Close Others
on the context menu.
Keeping the Alt key pressed, click
on the editor tab.