I have a Google Apps Script for Google spreadsheets which opens a secondary browser window (for authentication to an external system).
After the authentication we get a redirect to the webapp part of the script (doGet).
How do I close the browser window from Google Apps Script (so that the user can continue in the spreadsheet)?