[TASK] Migrate Severity to TypeScript