title: Puppeteer close new tab
body: <p>I'm using puppeteer and I have a little problem that once in a while new tab with ad appears, and stops the whole script. I'm looking for a way to basically detect when 3rd tab in browser window is open and close this 3rd tab (It is always the 3rd - first is blank, second is my page that i need and third is this ad).</p>