function minimizeAll() {

  windows.forEach( function (w) {
    w.minimize();
  });
}
Minimises both the original and copycat windows
@see https://developer.chrome.com/docs/extensions/reference/app_window