export function indent(str: string, indentation: string | number = 4): string { const indentStr = typeof indentation === "number" ? " ".repeat(indentation) : indentation; return str .split("\n") .map((line) => indentStr + line) .join("\n"); }