function tanstackFileRouter(config) {
	return (router, app) =>
		new TanstackFileSystemRouter(
			{
				dir: resolve.absolute(config.dir, router.root),
				extensions: config.extensions ?? ["ts", "tsx", "jsx", "js"],
			},
			router,
			app,
		);
}
@param {Partial<import("vinxi/fs-router").FileSystemRouterConfig>} config