bookmarks.getTree() returns an array containing the root of the bookmarks tree as a bookmarks.BookmarkTreeNode object.
You can access the entire tree recursively using its children property and the children property of its descendants, if they are themselves folders.
This is an asynchronous function that returns a Promise.