Ok, we are going to have to take this in stages because we don't know what damage has occurred.
There should be 4 wires going to the starter solenoid.
The big battery cable, which hooks to the big terminal, plus two red wires that hook to the same terminal.
Plus a purple wire that hooks to the S terminal.
First, unhook a wire from the battery. Take loose any wire hooked to the S terminal, and make sure it can't short out.
Then hook the battery wire and the two red wires to the one big terminal. Make sure the truck is out of gear, and touch the battery cable back to the battery. Don't have your head close. If it sparks, it could cause the battery to blow.
If the starter does not start cranking, and you get no big sparks, then hook up the cable temporally and see if you have lights and stuff inside.
If not, then you have probably blown one of the fusible links. Which are the red wires.
If so, they will have to be replaced with the correct wire, and you are not going to find it tonight probably.
If you have lights, disconnect the battery again, and find the one purple wire. Hook it to the S terminal, and then carefully try the battery again.
If it does not start cranking, hook up the battery and try to crank it.
Let us know what happens.