const browser = require('../browser'); module.exports = async ({ width, height }) => { if (width === undefined || height === undefined) throw new Error('Width e height são obrigatórios'); await browser.start(); await browser.setViewport(width, height); return { success: true, action: 'set_viewport', width, height }; };