function extractText(node) {
	if ("value" in node) {
		return /** @type {string} */ (node.value);
	}
	if ("children" in node) {
		return /** @type {Node[]} */ (node.children).map(extractText).join("");
	}
	return "";
}
Extracts the text recursively from a node
@param {Node} node The node from which to recursively extract text
@returns {string} The extracted text