export function log(msg: string, color?: string) { if (typeof color !== "undefined") { console.debug(`%c${msg}`, `color: ${color}`); } else { console.debug(msg); } }