Turn client-side TypeScript libraries into server-side equivalents