Since Zendesk apparently doesn’t want to add this function natively, I made a quick script that allows you to close all open tabs (except the current open tab) using a button.
It can take a while for the button to appear, it will be added after the page is fully loaded.