export function parseCommand(cmd: string) {
const splitCommand = extraSpacesStrippedCommand.split(/\s+(?![^[]*]|[^<]*>)/);
const bregex = /\.*[\][<>]/g;
const firstCommand = splitCommand.shift();
if (!firstCommand) throw new Error(`No command found in: ${cmd}`);
const parsedCommand: ParsedCommand = {