I'm pretty sure you can reset the TPS by just turning your key switch to position two(do not start car). Wait 10 seconds. Then remove the key.
Do this procedure twice. Do not press the gas pedal during this reset procedure.
After I did this my cars idle was fine.
I had a similar TPS problems .It worked for me.