In case anyone has this issue with auto imports enabled in nuxt 4, just import the type manually. This resolved the issue on my end.