export const tryFn = async Promise, R>(fn: T, ...args: any[]): Promise => { try { return await fn(...args); } catch { // ignore } return null; };