code: function(name){
          // Get all the windows
          const windows = BrowserWindow.getAllWindows();
  
          // Get the window through the name
          const windowID = this.get(name).object.id;
          if(!windows.length || !windowID) return false;
  
          // Loop through the windows, close all of them and focus on the targeted one
          Object.keys(windows).forEach(key => {
              let window = windows[key];
              if(window.id !== windowID){
                  window.close();
              }
          });
  
          this.get(name).focus();
      }
docs: Close all window except for one