Add salt, pepper, Italian seasoning, basil, garlic/garlic powder, and stir. Allow to cook for a few minutes until the meat is mostly done. Keep a close eye on it so that it does not burn. Drain the grease.
Break the spaghetti noodles into thirds and lay noodles on top of beef mixture. Scatter them.
Pour the diced tomatoes and spaghetti sauce over the noodles. Do not stir. Make sure there are no exposed noodles otherwise they will not cook completely and will be crunchy.
Place the lid and lock into place. Make sure your steam release knob to the sealed position.
Press the Pressure Cook/Manual button or dial and use the + or - or dial to select 8 minutes (if you prefer softer noodles) or 6 minutes (for al dente).
When the pressure cooking cycle is complete, turn off the pot and do a controlled Quick Release of the pressure/steam. Wait for the pin in the lid to drop down and then open the lid.
Stir the spaghetti making sure sauce and noodles are blend together. If the noodles are not cooked enough for you, put the lid back on Venting or use a glass lid if you have one of those. Let it sit a few minutes while you gather other things for meal. If some of your noodles stuck together, use a fork to pull them apart. Although, I've never had this happen.
Recipe by A Camera & A Cookbook at https://acameraandacookbook.com/instant-pot-spaghetti/