Trigger is setup for my setup which is off a Stream Deck. Adjust as needed.
Macro switches to Google Chrome, goes to the first tab and prompts if you want to close it or not. If you say Yes, it closes the tab and goes to the next. If you say No, it goes to the next tab. If you say Stop, the Macro stops.
I made this because my Chrome browser just overflows with tabs. This was a quick executable that made me sit down and clean it out by just saying yes or no.