togglePalettes() equivalent in UXP?

Is there a UXP command equivalent for the extenscript togglePalettes()?

One thing I have found is that scripting runs much faster with the Photoshop panels hidden. In some cases it is nearly twice as fast. Because of that, I used togglePalettes() a lot in my extendscript batch processors.

I did some timed tests with UXP by using the tab key to hide all of the panels and it is the same as extendscript where hiding the panels really speeds it up.

I can always instruct my users that they can hide the panels with the tab key. however, it would be nice to have the plugin do it automatically when running the batch processes.