const browser = require('../browser'); module.exports = async ({ device }) => { if (!device) throw new Error('Device é obrigatório'); await browser.start(); const result = await browser.emulateDevice(device); return { success: true, action: 'emulate_device', ...result }; };