Probably depends on what you hypothetically stole. Seek out the best result that doesn’t reward you for your misdeed. Return them if possible, if genuinely not possible perhaps donate the items. If the items are something that’s no longer usable like a perishable item replace it. If the item poses a danger if returned then destroying it may be a valid option as well (e.g. if you ‘stole’ a gun from someone who was suicidal to save their life, and I’m putting stole in quotes there because it’s a bit of an edge case depending on how you define things).