Create a utility UnwrapPromise<T> that extracts the fulfilled type of Promise<T>, leaving non-promises untouched.