import { visibleWidth } from "@singularity-forge/tui";
export function rightAlign(left, right, width) {
	const leftVis = visibleWidth(left);
	const rightVis = visibleWidth(right);
	const gap = Math.max(1, width - leftVis - rightVis);
	return left + " ".repeat(gap) + right;
}
