function onFulfilled(bookmarks) {
for (const bookmark of bookmarks) {
console.log(bookmark.url);
}
}
function onRejected(error) {
console.log(`An error: ${error}`);
}
browser.bookmarks.getRecent(1).then(onFulfilled, onRejected);bookmarks.getRecent() / notebook
bookmarks.getRecent()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.