You might try buffering inwards, with a buffer radius equal to half the polygon width. Then export the narrow "reverse buffer" as a polyline, with a narrow snap tolerance so that you get a single center line.
I haven't tried this myself, so I can't guarantee that it will work, but hopefully gives you a starting point.