async function handleC(clickedNotif) {
if (clickedNotif === notif_id) {
debug("THEY CLICKED ON MY BABY");
browser.notifications.onClicked.removeListener(handleC);
await browser.notifications.clear(notif_id);
//close after click
}
}
browser.notifications.onClicked.addListener(handleC);
Old Way
This has better error messages and will tell you what is missing
All these fields are required for notification create