Imports in Nuxt with @ or ~, which is better?

In Nuxt 3, imports can reference the project root using either ~ or @, for example:

import SubHeader from "@/components/SubHeader.vue"

vs

import SubHeader from "~/components/SubHeader.vue"

Is there a functional difference between these? Is one preferred over the other?