The bookmarks.getSubTree() method asynchronously retrieves a bookmarks.BookmarkTreeNode, given its ID.
If the item is a folder, you can access all its descendants 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.