Is there a possibility to close all open tabs inside Unified Service Desk except one Phone Call landing page?

I have a button in USD Agent Script , upon clicking that button, I want to close all the opened tabs and set focus to Phone Call landing page (Which is already opened in one of the tabs).

I know how to close a particular tab using Uii Action - Close , but in that case i will need to hard-code hosted controls inside that action call.

I don't want to hard-code, I want to close all the active tabs except one and there maybe different tabs open every-time for different transactions.

Is there a possibility?