function bmFlatten(input, collector) {
		for (const item of input) {
			if (item.type === "file") collector.push(item.path);
			if (item.type === "group") bmFlatten(item.items, collector);
		}
	}
@param {Bookmark[]} input @param {string[]} collector