@types/node sollte installiert sein (npm i -D @types/node), damit die Typisierung von $t korrekt funktioniert.