About four or five years ago when the TPS failed on my '92 Dakota with a 3.9 V-6, the idle was a constant 1200-1500 RPM "most" of the time when engine was started, occasionally it would idle normally, about 700 RPM, but usually high. Throttle response was normal but idle was high and sometimes the truck would be hard to start. I replaced the TPS with a "new" one from a '92 Acclaim parts car, the "new" TPS is still on the truck and working properly.
Disconnecting the battery will sometimes cause the computer to "forget" idle characteristics until it runs through several "start and stop" cycles. I wouldn't be too alarmed at the moment unless you can't drive the car due to stalling. I found "stalling at idle" to be a problem when I had the battery disconnected on a '97 Dakota for a couple of days, the problem corrected itself within five "start/stop cycles".
Fifty years of shadetree engineering, racing, and home auto repair, all Mopars mostly Dodges.