Turn a function into one that runs at most once per interval, on the first call and again with the latest arguments when the interval ends.
pnpm dlx shadcn@latest add "https://ui.tealmac.com/r/use-throttled-callback.json"