Converts a string representation of a number with decimal places to a BigInt representation.
import { toUnits } from "thirdweb/utils";toUnits("1", 18);// 1000000000000000000n
function toUnits(tokens: string, decimals: number): bigint;
The string representation of the number, including the integer and fraction parts.
let tokens: string;
The number of decimal places to include in the BigInt representation.
let decimals: number;
let returnType: bigint;
The BigInt representation of the number.