[TASK] Migrate DebugConsole to TypeScript