CPS is one of the white coloured ones, has a mind blank at the time but one will be for the ISCV NOT the knock sensor as I stated in my earlier thread, which is also a white 2 pin connector.
TPS will most likely be the red one as they are colour coded and will have 3 pins opposed to two. There is another one for the dizzy phase sensor this is a black 2 pin connector.
If your car is a early 4x4 with a red cam cover (YBJ) then this never had a knock sensor AFAIK, it's only the green cam cover (YBG) that did and would need a long wire as it's at the bottom on the right side of the block.
Martin