You need to open the browser and close it after 3 seconds
const browser = await (require('puppeteer')).launch({headless: false, defaultViewport: null,args: ['--start-maximized'] });
const page = await browser.newPage();
//
page.goto('https://web.telegram.org/a/', {timeout: -1});
//
setTimeout(() => {
console.log('how to hide browser?')
}, 3000);
I already know how to initially launch it with a hidden browser. But the problem is that I need to close it after a while