title: Python and Selenium - Close all tabs without closing the browser
body: <p>I want to close all open tabs <em>(browser windows)</em> without actually closing the driver, because I want to keep using it.</p>
  
  <p><code>driver.close()</code> will just close the focused tab.<br>
  <code>driver.quit()</code>  will close them all but also quit the driver.</p>
  
  <p>I thought about using <strong><code>driver.quit()</code></strong> and then re-opening the driver. But it does not seem very clean. Or maybe it is super clean, but also a slow thing to do.</p>
  
  <p><strong>Note</strong>: Using Firefox via <em>geckodriver</em></p>
  
  <p>How can I approach this?</p>