function handleAlarm(alarmInfo) {
console.log(`on alarm: ${alarmInfo.name}`);
}
browser.alarms.onAlarm.addListener(handleAlarm);alarms.onAlarm / notebook
alarms.onAlarm
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.