Need more info. Do you want to close:
- All Tabs
- One Tab
- other
to the left?
There have been many macros posted that work with Tabs.
Have you tried a forum search of "chrome tabs" and "safari tabs"?
For example:
Not an exact match, but should get you started.