App or Workaround for auto closing and refunding of orders

Hello there,

i was trying to find something for my needs but without success or as well not sure to search for what specifically.

I need an option to automatically close an order and refund if the status of the order is e.g. In processing for lets say 1 day already.

Is there any app or workaround that can help me to achieve that?

No one?