Promise.resolve()

Implement a function that resolves a given value to a Promise, handling thenables and existing promises.