You can create a component VWOScript.tsx with the content as shown in the attached screenshot. (Please note: account_id has dummy value and you will need to update that with your account_id).
Once added in layout.tsx file the VWO SmartCode doesn't need to be added in _app.tsx. So this part can be safely skipped.
This demo public repo can be referred for an example integration: https://github.com/Ragnarrlothbrok/tailnext-Test/blob/main/app/layout.tsx