set

Bun

Symbol

URLSearchParams.set

name: string,
value: string
): void;

Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.

MDN Reference