To close all editor tabs except the current one, keep Alt (on Windows and Linux) / (on macOS) pressed and click the cross icon for the current editor tab.

Close others