The @throws tag can be used to document an exception that can be thrown by a function or method.
@throws
/** * @throws {@link UserError} if `max < min` */export function rand(min: number, max: number): number;