import {readFileSync,writeFileSync} from 'node:fs'; const root=process.argv[2];if(!root)throw Error('Provide the native osTicket root'); const path=root+'/include/staff/ticket-view.inc.php';let html=readFileSync(path,'utf8'); const start="