function logCommands(commands) {
commands.forEach((command) => {
console.log(command);
});
}
let getCommands = browser.commands.getAll();
getCommands.then(logCommands);getAll() / notebook
getAll()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.