This website uses Cookies. Click Accept to agree to our website's cookie use as described in our Privacy Policy. Click Preferences to customize your cookie settings.
For scripting @jthi s answer applies, and interactively you can go to the home window, select all windows in the window list (Crtl-A), and in context menu (right mouse click) you can close them all.