How to execute the TAB UI.vision command from excutScript without interrupting js?

How to execute the TAB UI.vision command from excutScript without interrupting js code. The code is large, breaking the code to lose a lot of data. I need to go from js to another chrome tab. Crome.tab API don’t work. This is only possible through the TAB UI command. In imacros, there was an analogue command for this - iimplayCode.

Thanks for any help

So you want to run a “selectWindow” command from within excutScript? That is not possible. Why would you want to do this? What is the goal?

Good day. Thanks. I have a big js code in executeScript - about 30kb. If I interrupt its execution, I will lose a lot of parsed data. But I need go to another Chrome TAB window from js code