1const os = require('os'); 2const { execSync } = require('child_process'); 3 4module.exports = () => { 5 try { 6 if (os.platform() === 'win32') { 7 execSync(`taskkill /t /f /im chrome.exe 2> nul`); 8 } 9 } catch (err) { 10 // ignore 11 } 12}; 13 14