Lets assume that genies grant wishes literally, but will twist your words. How do you wish without unintended consequences? Typical rules of no more wishes, no resurrection, no forced love, no altering the past, can’t defy logic, can’t break physical laws, can’t create paradoxes, and can’t affect higher powers (this is one tough genie!).


First wish: the genie will be my eternal friend.
Second wish: free the genie from the geas — make the genie its own master.
There is no third wish.
First wish genie is an eternal friend but more like distant friend that would talk to you as a friend or give you a hand with moving but no more. then same as https://lemmy.ca/post/69470791/24857447 but maybe you get slightly nicer conditions?
The first is because of the Arabian Nights story where the guy frees the genie and the first thing it does is kill the wisher. There’s another where the first thing it does is puts the wisher in the bottle it was trapped in.
So “distant friend” is enough.