import type { Page } from '#lib/api/types.js'; /** A Page envelope, as the server sends a paged list. */ export function page(items: T[], total: number, offset = 0, limit = 50): Page { return { items, total, offset, limit }; }