When money is refunded to a credit card – for example after a cancelled flight – the transaction now appears in the Inbox as a negative amount, so it’s clear that the money has been paid back.
Refunds can’t be used to create an expense. If you don’t need to keep the transaction, you can simply delete it.