bookarks_table = {
const links = [];
const queue = [...bookmarks_3_24_23.children];
while (queue.length > 0) {
const node = queue.pop();
if (node.type === "folder") {
queue.push(...node.children);
}
if (node.type === "link") {
links.push({
name: node.name,
link: node.link,
add_date: new Date(node.add_date * 1000)
});
}
}
return links;
}