Kitty terminfo not working on Hyprland

I used to use Gnome and kitty just worked, but when I started using Hyprland, kitty says this when starting:

warning: Could not set up terminal.
warning: TERM environment variable set to 'xterm-kitty'.
warning: Check that this terminal type is supported on this system.
warning: Using fallback terminal type 'xterm-256color'.

And a lot of cli tools don’t work properly with it.

When I launch it from another terminal or even this borked kitty, it works like it should, and also when I log back in Gnome it also works. What could be the issue?