Closey

Closey is a simple Safari extension which allows you to close all tabs to the left and right of the current tab.

After enabling the extension, you can right click on any webpage and select “Close Left Tabs” or “Close Right Tabs”