seal gap between door and frame
Use some sheet metal, rats can and will chew through wood, plastic and foam very easily. Especially if they are already established in the shed. You can bend the sheet metal over and fasten it from both sides.