You can not ride a jet ski at night because it is too dangerous. Other boats can not see you and you will have a difficult time seeing where you are going.
It is illegal to drive a jet ski at night in most US states. For example, in Texas:
“it is unlawful for any person to: Operate PWC at night (sunset until sunrise)”
You should plan to be off the water 30 min before sunset to stay safe.