export function omit(obj: T, keys: K[]): Omit { return Object.fromEntries(Object.entries(obj).filter(([key]) => !keys.includes(key as K))) as Omit; }