+-+ | +-+ — for terminals that don’t render box-drawing
Multi-line content
box("Line one\nLonger second line\nThird", { align: "center" });
All lines are padded to the longest one, so the right border lines up. Width measurement strips ANSI first, so colored lines (box(colors.red("…"))) don’t skew the box.