How to create Relayer in typescript

I'm following this guide for gasless transactions https://docs.openzeppelin.com/defender/v1/guide-metatx but it mentions to create the relayer script in javascript. I was wondering if there was a way to create it in typescript as with my current code, it gives this error on the network param setting.

Argument of type '{ name: string; network: string; minBalance: string; }' is not assignable to parameter of type 'CreateRelayerRequest'.
  Types of property 'network' are incompatible.
    Type 'string' is not assignable to type 'Network'.ts(2345)

The createRelayer.ts code

import 'dotenv/config';
import { RelayClient } from '@openzeppelin/defender-relay-client';
import { ethers, network } from 'hardhat';

async function main() {
  const API_KEY = process.env.RELAYER_API_KEY;
  const API_SECRET = process.env.RELAYER_API_SECRET_KEY;
  const relayClient = new RelayClient({apiKey: API_KEY, apiSecret: API_SECRET});

  const requestParams = {
    name: "Trace Relayer",
    network: "sepolia",
    minBalance: BigInt(1e17).toString()
  };

  const relayer = await relayClient.create(requestParams);
}

:computer: Environment

I'm using Hardhat Ts and the ethers import from hardhat too.