Refund in Cryptocurrency For Purchase In Cryptocurrency

I recently purchased a few NFTs for example .1 ETH withdrawal. The seller decided to refund me the .1ETH, which is set as a .1ETH deposit in Koinly. I never expected this to happen.

How should I take the cost basis into consideration when reporting this transaction and should it just be reset to the original cost basis?

The gas fees were not refunded. Should I just say oh well and pay the taxes as it is a deposit. Seems like more of a headache to figure it out long term.