Just a warm-up, check out this area for FSMs (Factory Service Manuals).
www.lilevo.com/mirage/
I'd suggest getting the distributor/timing set, then adjust the TPS (can be set by checking resistance across the pins with connector unplugged) and reset idle, all after the engine is up to temperature. Also be aware of the 1 or 2 wires to ground, once op temp is reached, so that the ECU goes into base timing mode and does not compensate for you turning the distributor.
It will be detailed in the FSM as to which process you should do first, but maybe someone still remembers which one is best to set first and why. There was a way of doing these things in order to make the ECU happy, it's just been a while. The 4G15 was even more finicky than the 4g63 but it's been a little over half a decade since I owned, and rebuilt one.