definePageMeta is a compiler macro that you can use to set metadata for your pages. With the scrollToTop parameter you tell Nuxt to scroll to the top before rendering the page or not:
<script setup lang="ts">
definePageMeta({
layout: 'default',
scrollToTop: true,
})